package com.cuit.ocp.dao;

import com.cuit.ocp.bean.Trader;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TraderDao {
    int addNewTrader(Trader trader);
    int update(Trader trader);
    int deleteById(int trader_id);
    int deleteByIds(List<Integer> trader_ids);
    Trader findById(int trader_id);
    Trader findByName(String tradername);
    List<Trader> findAll();
}
